import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
  redirect:'/pc主页/main'
  },
  {
    path: '/pc主页',
    name: 'System',
    component: () => import( '../views/system/pc主页.vue'),
    children:[
      {
        path:'main',
        component: () => import( '../views/system/main.vue'),
      },
      {
        path:'item',
        component:() => import('../views/system/item.vue')

      },
      {
        path:'shopcar',
        component:() => import('../views/system/shopcar.vue')

      },
    ]
  }
]
const router = new VueRouter({
  routes,
  mode:'history'
})

export default router
